package com.icinfo.cloud.provider.common.enums.dicenum;

public enum CaseStagePublicServiceEnum {
    serviceNameCASE_REGISTER("LINK-202203020939","caseRegisterServiceImpl"),
    serviceNamePUNISH_DECIDE("LINK-202203020948","punishDecideServiceImpl");

    private String code;
    private String serviceName;


    private CaseStagePublicServiceEnum(String code, String serviceName) {
        this.code = code;
        this.serviceName = serviceName;
    }
    public static String getServiceNameByCode(String code) {
        for (CaseStagePublicServiceEnum caseStagePublicServiceEnum : CaseStagePublicServiceEnum.values()) {
            if (caseStagePublicServiceEnum.getCode().equals(code)) {
                return caseStagePublicServiceEnum.getServiceName();
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }
}
